package ModelLayer;
import java.util.*;

/**
 * Write a description of class Person here.
 * 
 * @author (Group2) 
 * @version (9)
 */
public class Person
{
    //instance variables start;
    String id;
    String name;
    String address;
    int postalCode;
    String city;
    String phone;
    
    //instance variables end;
    
    public Person(String id, String name, String address, int postalCode, String city, String phone)        //constructor of class Person
    {
        this.id=id;
        this.name=name;
        this.address=address;
        this.postalCode=postalCode;
        this.city=city;
        this.phone=phone;
    }
    
    public void create(String id, String name, String address, int postalCode, String city, String phone)    //creating an object of class Person
    {
        this.id=id;
        this.name=name;
        this.address=address;
        this.postalCode=postalCode;
        this.city=city;
        this.phone=phone;
    }
                
    public void print()         //print out the datas of the person;
    {
        System.out.println("ID: " + id);
        System.out.println("Name: " + name);
        System.out.println("Address: " + address);
        System.out.println("PostalCode: " + postalCode);
        System.out.println("City: " + city);
        System.out.println("Phone: " + phone);
    }
    
    public void setName(String name)        //set up a new name for the person;
    {
        this.name=name;
    }
    
    public void setAddress(String address)      //set up a new address for the person;
    {
        this.address=address;
    }
    
    public void setPostalCode(int postalCode)       //set up a new postal code for the person;
    {
        this.postalCode=postalCode;
    }
    
    public void setCity(String city)        //set up a new city for the person;
    {
        this.city=city;
    }
    
    public void setPhone(String phone)      //set up a new phonenumber for the person;
    {
        this.phone=phone;
    }
    
    public String getName()     //returns the name of the person;
    {
        return name;
    }
    
    public String getaddress()     //returns the address of the person;
    {
        return address;
    }
    
    public int getPostalCode()      //returns the postal code of the person;
    {
        return postalCode;
    }
    
    public String getCity()     //returns the city of the person;
    {
        return city;
    }
    
    public String getphone()   //returns the phone number of the person;
    {
        return phone;
    }
    
    public String getID()       //returns the id of the person;
    {
        return id;
    }
}
